<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
</head>

<body>

    <script>
        var firstname;
        firstname = "Hege";
        document.write(firstname);
        document.write("<br>");
        firstname = "Tove";
        document.write(firstname);
    </script>
    <p>上面的脚本定义了一个变量，给变量分配一个值并显示，再次修改变量的值后，再次显示。
    </p>

</body>

</html>